/*
 *  Copyright (C) 2011 glauco
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.balisunrise.swing.common;

import java.util.logging.Level;
import org.balisunrise.application.Application;

/**
 *
 * @author Glauco
 */
public class Icons {
    public static final String MONEY1 = "MONEY1";
    public static final String MONEY2 = "MONEY2";
    public static final String MONEY3 = "MONEY3";
    public static final String MONEY4 = "MONEY4";
    public static final String MONEY5 = "MONEY5";

    /**
     * Retorna o Path do Icone pelo nome do icone.
     * @param iconName
     */
    public static String getIconPath(String iconName){
        try{
            IconManager im = (IconManager) Application.get().getIconManager();
            return im.getPath(iconName);
        }catch(Exception ex){
            Application.get().getLogger().log(Level.WARNING,
                    "Erro ao ler Path de um Icone.", ex);
        }
        return "";
    }
}
